package yadong.example.code.jaxb;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class TheaterShowTime {
	private String address;
	private String city;
	private String state;
	private String zip;
	private String[] dateArray;
	private String locationId;
	private String[] showTimeArray;
	private String theaterName;
	private String theaterTicketUrl;
	private String ticketLink;
	public TheaterShowTime() {
		
	}
	public TheaterShowTime(String val) {
		this.address=val;
		this.city=val;
		this.state=val;
		this.zip=val;
		this.dateArray=new String[]{val,val,val};
		this.showTimeArray=new String[]{val,val,val};
		this.locationId=val;
		this.theaterName=val;
		this.theaterTicketUrl=val;
		this.ticketLink=val;		
	}
	public TheaterShowTime(String address,
						   String city,
						   String state,
						   String zip,
						   String[] dateArray,
						   String []showTimeArray,
						   String locationId,
						   String theaterName,
						   String theaterTicketUrl,
						   String ticketLink) {
		this.address=address;
		this.city=city;
		this.state=state;
		this.zip=zip;
		this.dateArray=dateArray;
		this.showTimeArray=showTimeArray;
		this.locationId=locationId;
		this.theaterName=theaterName;
		this.theaterTicketUrl=theaterTicketUrl;
		this.ticketLink=ticketLink;		
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getZip() {
		return zip;
	}
	public void setZip(String zip) {
		this.zip = zip;
	}
	@XmlElementWrapper(name="dates")
	@XmlElement(name="date")
	public String[] getDateArray() {
		return dateArray;
	}
	public void setDateArray(String[] dateArray) {
		this.dateArray = dateArray;
	}
	public String getLocationId() {
		return locationId;
	}
	public void setLocationId(String locationId) {
		this.locationId = locationId;
	}
	@XmlElementWrapper(name="showtimes")
	@XmlElement(name="showtime")
	public String[] getShowTimeArray() {
		return showTimeArray;
	}
	public void setShowTimeArray(String[] showTimeArray) {
		this.showTimeArray = showTimeArray;
	}
	public String getTheaterName() {
		return theaterName;
	}
	public void setTheaterName(String theaterName) {
		this.theaterName = theaterName;
	}
	public String getTheaterTicketUrl() {
		return theaterTicketUrl;
	}
	public void setTheaterTicketUrl(String theaterTicketUrl) {
		this.theaterTicketUrl = theaterTicketUrl;
	}
	public String getTicketLink() {
		return ticketLink;
	}
	public void setTicketLink(String ticketLink) {
		this.ticketLink = ticketLink;
	}
	
	
}
